import { Prop, getModelForClass } from "@typegoose/typegoose";


export class Discuss {

    @Prop({ required: true, type: String })
    user_id
    @Prop({ required: true, type: String })
    food_id
    @Prop({ required: true, type: String })
    content
    @Prop({ required: true, type: Number })
    publish_time
}

export const DiscussModel = getModelForClass(Discuss, {
    schemaOptions: { collection: 'discuss' },
});